package cn.ren.dao;

import cn.ren.pojo.CheckItem;
import cn.ren.pojo.Illness;
import cn.ren.pojo.Member;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MemberDao {
    /**
     * 根据电话号码查询会员
     * @param Telephone
     * @return
     */
    Member findMemberByTel(String Telephone);

    /**
     * 添加会员
     * @param member
     */
    void add(Member member);

    /**
     * 根据日期，查询之前所有的数量
     * @param s
     * @return
     */
    Integer findMemberCountBeforeDate(String s);

    Integer findTodayNewMemberCount(String today);

    Integer findTotalCount();

    Integer findThisWeekNewMemberCount(String firstDayOfWeek);

    Integer findThisMonthNewMemberCount(String firstDay4ThisMonth);

    Member findByID(int id);

    List<Member> findAll();

    Page<Member> queryByCondition(String queryString);

    List<Illness> findAllIllness();

    Page<Member> queryByIllnessPage(String queryString);
}
